#pragma once
#include <string>
#include "game_client.h"
class Cgame_client_testDlg;
class TestGameClient : public GameClient
{
public:
	TestGameClient(Cgame_client_testDlg* m_dlg, std::string ip, int port);
	~TestGameClient();

public:
	virtual void onGameClientSendData(const std::string& typeName, const std::string& data);
	virtual void onGameClientRecvData(const std::string& typeName, const std::string& data);
	virtual void onGameClientDisconnected();
	virtual void onGameClientConnected();
	virtual void onGameClientRegister(bool isSuccess, int errorCode);
	virtual void onGameClientLogin(bool isSuccess, GameClientPlayer* playerInfo);
	virtual void onGameClientActivate(bool isSuccess, int errorCode);
	virtual void onGameClientJoinDesk(bool isSuccess, int errorCode);
	virtual void onGameClientLeaveDesk(int reason);
	virtual void onGameClientRoomMessage(void* data, int len);
	virtual void onGameClientDeskMessage(void* data, int len);
	virtual void onGameClientOtherPlayerJoinDesk(GameClientPlayer* playerInfo);
	virtual void onGameClientOtherPlayerLeaveDesk(GameClientPlayer* playerInfo);
	virtual void onGameClientCreateFriendDesk(bool isSuccess, int errorCode, const std::string& deskCode);
private:
	Cgame_client_testDlg* m_dlg;
};

